PEGetReportTitle

Use PEGetReportTitle to retrieve the handle of the report title string in the report summary information. If the job is a subreport, it returns the handle of the subreport name. Use this function with PEGetHandleString. Use PESetReportTitle, to pass back a report title. The series can be used in Custom-Print Links to identify and change an existing report title in response to a user selection at print time.

C Syntax
BOOL CRPE_API PEGetReportTitle (
        short printJob,
        HANDLE FAR *titleHandle,
        short FAR *titleLength );
Parameters

printJob

Specifies the print job for which you want to get the report title.

titleHandle

Specifies a pointer to the handle of the title string.

titleLength

Specifies a pointer to the length of the title string (in bytes) including the terminating byte.

Returns
VB Syntax

VB Sample Code for modifying title, options, margins, and date

Declare Function PEGetReportTitle Lib "crpe32.dll" (
    ByVal printJob As Integer, TitleHandle As Long, TitleLength As Integer
    ) As Integer
Delphi Syntax
function PEGetReportTitle (
    printJob: Word;
    var titleHandle: HWnd;
    var titleLength: Word
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com